package com.lu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lu.model.entity.SysDept;

import java.util.List;

/**
 * <p>
 * 部门表 服务类
 * </p>
 *
 * @author wangqieyu
 * @since 2022-07-26
 */
public interface SysDeptService extends IService<SysDept> {

  Long addDept(SysDept dept);

  SysDept updateDept(SysDept dept);

  Integer deleteDept(Long id);

  List<SysDept.TreeNodes> getListByPid(Long pid, Integer status);

  List<SysDept> sort(List<Long> ids);

}
